3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides a function that you can use to set a view's idle method. QuickDraw 3D executes your idle method occasionally during lengthy operations. See "Application-Defined Routines" for information on writing an idle method.
Your application's callback method may be called during a hardware interrupt, and therefore it should not use Macintosh Toolbox routines. To overcome this limitation, an interrupt-level render completion function can set a global variable, requesting Toolbox calls, that the client polls at noninterrupt time.
You can use the Q3View_SetIdleMethod function to set a view's idle method.
TQ3Status Q3View_SetIdleMethod (
TQ3ViewObject view,
TQ3ViewIdleMethod idleMethod,
const void *idlerData);
Previous | QD3D Book | Overview | Chapter Contents | Next |